package com.usian.appointments;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.usian.image.Images;
import lombok.Data;
import lombok.ToString;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
@ToString
public class Appointments {
    private Integer id;
    private String activeName;
    private String img;//活动图片
    private String plan;
    private String destination;
    private String meetingPlace;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date meetingTime;
    private String activeType;
    private BigDecimal cost;
    private Integer num;
    private Integer userId;
    private Integer people;
    private Integer enroll;
    private String image;//用户头像
    private String name;
    private String introduction;

    private List<Images> imagesList;

    public Appointments(Integer id, String activeName, String img, String plan, String destination, String meetingPlace, Date meetingTime, String activeType, BigDecimal cost, Integer num, Integer userId, Integer people, Integer enroll) {
        this.id = id;
        this.activeName = activeName;
        this.img = img;
        this.plan = plan;
        this.destination = destination;
        this.meetingPlace = meetingPlace;
        this.meetingTime = meetingTime;
        this.activeType = activeType;
        this.cost = cost;
        this.num = num;
        this.userId = userId;
        this.people = people;
        this.enroll = enroll;
    }
    public Appointments() {}

}
